-- 解密 jwt

local cjson = require "cjson"
local jwt = require "resty.jwt"
ngx.header.content_type="application/json; charset=utf-8";
local jwt_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0IjoiYmFyMTEifQ.q6ox6jranTFzgQ2Z9iSUeETOpgVJCEOwCzodA_m7Eno"
local jwt_obj = jwt:verify("5pil6aOO5YaN576O5Lmf5q+U5LiN5LiK5bCP6ZuF55qE56yR", jwt_token)
ngx.say(cjson.encode(jwt_obj))
